Version

ImmutableCollection<T> Class

Represents an immutable collection. Once created, it can not be modified.
Syntax
'Declaration
 
Public Class ImmutableCollection(Of T) 
   Inherits System.Collections.ObjectModel.ReadOnlyCollection(Of T)
public class ImmutableCollection<T> : System.Collections.ObjectModel.ReadOnlyCollection<T> 
Type Parameters
T
Type of the items in the collection.
Remarks

ImmutableCollection's contents cannot be modified. It's different from ReadOnlyCollection in that a ReadOnlyCollection's underlying source list can be modified. The source list is the list that you pass into the constructor of the collection. ImmutableCollection makes a copy of the source list in the constructor

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also